Microneedle array and closed-loop control of penicillin delivery